package com.wpp.Test;

import com.wpp.dao.books;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopTest {


    /**
     * 用于测试: 测试切面
     */
    @Test
    public void test() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");
        books book = context.getBean("book", books.class);
        book.buyBooks("java", 20);
    }
}
